﻿using Sundry.IBLL;
using Sundry.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sundry.BLL
{
    public class AdminOperationService : BaseService<AdminOperation>, IAdminOperationService
    {
        public override void SetCurrentRepository()
        {
            CurrentRepository = _dbSession.AdminOperationRepository;
        }

        /// <summary>
        /// 获取操作日志列表
        /// </summary>
        /// <param name="username">用户名</param>
        /// <param name="authoryId">权限Id</param>
        /// <param name="nowNumber">当夜数字</param>
        /// <param name="pageSize">页长</param>
        /// <param name="rowCount">总数目</param>
        /// <returns>获取操作日志列表</returns>
        public IQueryable<dynamic> LoadOperstionList(string username, int authoryId, int nowNumber, int pageSize, out int rowCount)
        {
            return _dbSession.AdminOperationRepository.LoadOperstionList(username, authoryId, nowNumber, pageSize, out rowCount);
        }
    }
}
